Add IOB display option for contact watch face#512
Add IOB display option for contact watch face#512luborjurena wants to merge 7 commits intoloopandlearn:devfrom
Conversation
Extends the contact feature to support showing IOB (Insulin on Board) alongside the existing trend and delta options. Users can now choose to include IOB in the main BG contact or create a separate IOB contact.
Fix delayed IOB contact update with latest value
Allow selecting which contact to include Trend, Delta, or IOB into, instead of only including into the BG contact. When a field is set to "Separate", it becomes available as a target for other fields. This enables groupings like BG+Trend in one contact and Delta+IOB in another.
Adds a "Color Mode" setting with two options: - Static: Uses the selected text color (existing behavior) - Dynamic: Colors text based on BG range using raw mg/dL value - Green: In range - Yellow: High (>= highLine) - Red: Low (<= lowLine) When Dynamic mode is selected, the text color picker is hidden since the color is determined automatically based on glucose thresholds. Files changed: - ContactColorMode.swift: New enum with color logic - Storage.swift: Add contactColorMode setting - ContactSettingsViewModel.swift: Add colorMode property - ContactSettingsView.swift: Add Color Mode picker - ContactImageUpdater.swift: Use raw BG value for color calculation - project.pbxproj: Add ContactColorMode.swift to project
Add flexible contact grouping with target selection
Allow static and dynamic colors based on BG range (inspired by Trio)
|
Hi, Thanks for the contribution! |
|
Hi @luborjurena, and thank you for your contribution. A few comments and questions, let me know if I misunderstood anything.
|

Extends the contact feature to support showing IOB (Insulin on Board) alongside the existing trend and delta options. Users can now choose to include IOB in the main BG contact or create a separate IOB contact.